package com.zygh.policeasset.component.ExcelDataHand;

import cn.afterturn.easypoi.handler.impl.ExcelDataHandlerDefaultImpl;
import com.zygh.policeasset.pojo.export.ExportSoftWit;
import org.apache.poi.common.usermodel.HyperlinkType;
import org.apache.poi.ss.usermodel.CreationHelper;
import org.apache.poi.ss.usermodel.Hyperlink;

public class ExcelDataHandSoftwit extends ExcelDataHandlerDefaultImpl<ExportSoftWit> {
    public Hyperlink getHyperlink(CreationHelper creationHelper, ExportSoftWit obj, String name, Object value) {
        Hyperlink hyperlink = creationHelper.createHyperlink(HyperlinkType.URL);
        hyperlink.setLabel(name);
        hyperlink.setAddress(obj.getPicurl());
        return hyperlink;
    }
}